﻿
using System.Collections;
public class GameManager  {
	private static GameManager manager;
	private GameState state;
	private LevelPropery level;
	private Click button;
	private Move move;
	private GameManager(){
		level=new LevelPropery();
		state=new GameState();
		button=new Click();
		move=new Move();
        currentLevel=lastLevel = 1;
	}
	public Click ButtonClick{
		set{button=value;}
		get{return button;}
	}
	public Move Direction{
		get{return	 move;}
		set{move=value;}
	}
	public LevelPropery Level{
		set{level=value;}
		get{return level;}
	}
	public GameState gamestate{
		set{state=value;}
		get{return state;}
	}
	public bool Wheel{set;get;}
	public bool Sound{set;get;}
	public bool Music{set;get;}
	public bool BarShow{set;get;}
	public bool IsShow{set;get;}
	public bool IsMatch{set;get;}
    public bool IsPlay { set; get; }
    public bool NoMove { set; get; }
	public bool IsDestroySpecialMatch{set;get;}
		public static GameManager getInstance(){
		if(manager!=null) return manager;
		manager=new GameManager();
		return  manager;
	}
        public int currentLevel {set;get; }
        public int lastLevel { set; get; }
}
public class LevelPropery{ 
	private  int numberofLevel;
	public int NumberofLevel{
		set { numberofLevel = value; }
		get { return numberofLevel; }
	}
   
}
public enum GameState{
	none,
	playing,
	dropping,
	win,
	destroy,
	checkboardstate,
	checkaterdrop,
	nomorematch,
	moving,
	checking,
	lose
}
public enum Move{
	none,
	left,
	right,
	up,
	down
}
public enum Click{
	can_click,
	can_not_click
}

